﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="H2.NET.Web.Reports.Run_Report"
    CodeBehind="Rpt_Run_Report.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
    <title>报表查询</title>
    <style type="text/css">
        .gv_boder
        {
            width: 100%;
            margin-top: 3px;
        }
        .gv_boder th
        {
            height: 26px;
            background-color: #EDEDED;
            color: #6C6B6B;
            font-size: 10pt;
            font-family: Arial;
            font-weight: bold;
            padding-left: 2px;
        }
        .gv_header
        {
            style: font-size: 20pt;
            font-family: Arial;
            color: #6C6B6B;
            text-decoration: none;
        }
        .gv_item_alternating_row
        {
            height: 25px;
            font-size: 9pt;
            font-family: Arial;
            background-color: #F9F9F9;
        }
        .gv_item_row
        {
            height: 25px;
            font-size: 9pt;
            font-family: Arial;
        }
        .gv_selected_row
        {
            height: 25px;
            padding-left: 2px;
            font-size: 9pt;
            font-family: Arial;
        }
        .gv_pager
        {
        }
        .cursor_hand
        {
            cursor: hand;
        }
        .gv_head_hide
        {
            display: none;
        }
        .ImportBtn {
          margin:50px
        }
    </style>
    <script type="text/javascript">
        function winOpenFullScreen(strURL) {
            var sheight = screen.height - 150;
            var swidth = screen.width - 10;
            var winoption = "left=0,top=0,height=" + sheight + ",width=" + swidth + ",toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes";
            var tmp = window.open(strURL, '', winoption);
            return tmp;
        }

        function winOpenPopup(strURL, str_width, str_height, str_value, str_element, str_postback, str_multiple) {
            try {
                var var_time = new Date();
                var winoption = "dialogWidth=" + (parseInt(str_width) + 18) + "px;dialogHeight=" + str_height + "px;dialogLeft: status:no; directories:yes;scrollbars:auto;Resizable=yes;";
                var tmp = window.showModalDialog(strURL + "&vt=" + var_time, '', winoption);

                if (tmp != null && tmp != "" && tmp != undefined) {
                    var o = eval('(' + tmp + ')');

                    //是否多选
                    if (str_multiple == "0") {
                        document.getElementById(str_element).value = eval("o." + str_value);
                    } else {
                        document.getElementById(str_element).value = document.getElementById(str_element).value + eval("o." + str_value) + ",";
                    }

                    //是否Postback
                    if (str_postback == "1") {
                        __doPostBack(str_element, "change:" + document.getElementById(str_element).value);
                    }
                }
            } catch (e) {
            }
        }
    </script>    
</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel ID="pan_search" runat="server" Height="0px" Width="100%" Style="margin: 10px 0px 20px 0px;">
    </asp:Panel>
    <div style="width: <%= cfg_width %>;">
        
        <asp:GridView ID="gv_rpt_run_report" runat="server" CssClass="gv_boder" Width="100%"
            BorderColor="#ACA899" BorderWidth="1px" GridLines="Both" BorderStyle="solid"
            AutoGenerateColumns="False" PageSize="12" AllowPaging="True" AllowSorting="True"
            OnSorting="gv_rpt_run_report_Sorting">
            <HeaderStyle ForeColor="#6C6B6B" />
            <RowStyle CssClass="gv_item_row" />
            <AlternatingRowStyle CssClass="gv_item_alternating_row" />
            <SelectedRowStyle CssClass="gv_selected_row" />
            <PagerStyle CssClass="gv_pager" />
            <PagerTemplate>
            </PagerTemplate>
        </asp:GridView>
        
        <asp:Table ID="tblPager" CssClass="table" runat="server" Height="20px" Width="100%">
            <asp:TableRow ID="TableRow1" runat="server" Height="20px">
                <asp:TableCell ID="TableCell1" runat="server" Height="20px" Font-Size="9pt" ForeColor="#6C6B6B">
                    <font color="#666666" face="Arial" style="font-size: 9pt">页次: </font>
                    <asp:Label ID="lblPageCurrent" runat="server" Text="1"></asp:Label>/<asp:Label ID="lblPageCount"
                        runat="server" Text="1"></asp:Label><font color="#666666" face="Arial" style="font-size: 9pt">&nbsp;&nbsp;共</font><asp:Label
                            ID="lblPageRow" runat="server" Text="0"></asp:Label><font color="#666666" face="Arial"
                                style="font-size: 9pt">条记录</font>
                    <asp:LinkButton ID="btnGoTo" runat="server" CssClass="link"><font color="#666666" face="Arial" style="font-size: 9pt"><%=clsCmm.getTextValue("frm_gv_list_txtGoTo")%></font></asp:LinkButton>&nbsp;<asp:DropDownList
                        ID="drpGoTo" runat="server" Width="40px" Font-Size="9pt" OnSelectedIndexChanged="drpGoTo_SelectedIndexChanged"
                        AutoPostBack="True">
                    </asp:DropDownList>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnFirst" runat="server" CssClass="link" CommandName="Pager"
                        Font-Underline="false" CommandArgument="First" OnCommand="NavigateToPage"><font color="#666666" face="Arial" style="font-size: 9pt">首页</font></asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="btnPrev" runat="server" CssClass="link" CommandName="Pager" Font-Underline="false"
                        CommandArgument="Prev" OnCommand="NavigateToPage"><font color="#666666" face="Arial" style="font-size: 9pt">前一页</font></asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="btnNext" runat="server" CssClass="link" CommandName="Pager" Font-Underline="false"
                        CommandArgument="Next" OnCommand="NavigateToPage"><font color="#666666" face="Arial" style="font-size: 9pt">下一页</font></asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="btnLast" runat="server" CssClass="link" CommandName="Pager" Font-Underline="false"
                        CommandArgument="Last" OnCommand="NavigateToPage"><font color="#666666" face="Arial" style="font-size: 9pt">尾页</font></asp:LinkButton>&nbsp;&nbsp;
                </asp:TableCell>
            </asp:TableRow>
           
        </asp:Table>
    </div>
    </form>
</body>
</html>
